package com.ershijin.authserver.jackson2;

import com.fasterxml.jackson.databind.module.SimpleModule;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

public class UsernamePasswordAuthenticationTokenModule extends SimpleModule {
    public UsernamePasswordAuthenticationTokenModule() {
        super(UsernamePasswordAuthenticationTokenModule.class.getName());
    }

    @Override
    public void setupModule(SetupContext context) {
        context.setMixInAnnotations(UsernamePasswordAuthenticationToken.class, CustomizerUsernamePasswordAuthenticationTokenMixin.class);
    }

}
